package com.fled.itsmbigscreen.service;

import com.fled.itsmbigscreen.vo.GetElectricityByRoomIdVo;
import com.fled.itsmbigscreen.vo.GetSensorByRoomIdVo;
import org.springframework.scheduling.annotation.Async;

import javax.mail.MessagingException;
import java.util.List;

public interface PduService {
    /**
     * 获取平均电流电压
     *
     * @return
     */
    GetElectricityByRoomIdVo getElectricityByRoomId(Integer roomId);

    /**
     * 获取温湿度历史
     *
     * @param roomId
     * @return
     */
    List<GetSensorByRoomIdVo> getSensorByRoomId(Integer roomId);

    /**
     * 获取告警数
     *
     * @return
     */
    Integer getAlert();

    /**
     * 获取今日能耗
     *
     * @return
     */
    Double getPower();

    @Async
    void sendMail(String subject, String context) throws MessagingException;
}
